#include <stdio.h>
#include <sys/mman.h>
#include "pyparser.h"

#include "core.c"
#include "obj.c"
#include "gc.c"
#include "asm.c"
#include "jit.c"

int main(int argc, char *argv[]){
  jitpy start;
  FILE* handle = fopen(argv[1], "r");
  mod_ty mod = PyASTFromFile(handle, argv[1]);

  init_asm();
  start = compile(mod);
  init_gc();

  start();

  return 0;
}
